package com.ff.neuropp.util;

public class SnowIdUtil {

    private static SnowflakeIdWorker snowflakeIdWorker=new SnowflakeIdWorker(0,0);

    private static long nextId(){
        return snowflakeIdWorker.nextId();
    }


    public static String userId(){

        return new StringBuilder().append("Neuropp_").append(nextId()).toString();
    }

    public static String orderId(){

        return new StringBuilder().append("order_").append(nextId()).toString();
    }
}
